package com.lovo.after.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName("t_goods")
public class GoodsEntity implements Serializable {
    @TableId(type = IdType.AUTO)
    private long goodsId;

    private String goodsName;
    //商品编号

    private String goodsNo;
    //商品规格

    private int goodsSize;
    //库存数量
    private int num;
    //商品类别
    private int type;
    //阈值
    private int threshold;
    //销售价
    private float sellPrice;
    //上下架状态   1-已上架   2-已下架
    private int status;
    //折扣
    private float discount=1;
    //预售状态   ：0-不预售   1-预售
    private int preSaleStatus;
    //审核状态   0：未通过   1通过
    private int auditStatus;
    //未通过原因
    private String reason;
    //是否发起采购  0:未发起采购  1:已发起采购
    private int isBuy;
}
